package com.skp.shaphan.menus;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenuItem;

import com.skp.shaphan.ShaphanApp;

/**
 * Exit action to exit the application
 * @author skp
 *
 */
public class FileExitMenu extends JMenuItem implements ActionListener {
	public FileExitMenu() {
		super("Exit");
		this.setMnemonic('X');
		this.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		ShaphanApp.getMainWindow().dispose();
	}
}
